package com.company;

public class Main {

    public static void main(String[] args) {
        // write your code here
        int[] a = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9};//int[] a={1,2,3,4,5,6,7,8,9};
        int[] b = new int[10];
        //char[] c=new char[]{'h','e','l','l','o','w'};
        char[] c = new char[5];

        c[0] = 'h';
        System.out.println(c);
        c[1] = 'e';
        System.out.println(c);
        c[2] = 'l';
        System.out.println(c);
        c[3] = 'l';
        System.out.println(c);
        c[4] = 'o';
        System.out.println(c.length);
        System.out.println(c);
        System.out.println(b[4]);
        methed();
        methed1();

    }

    public static void methed() {
        int[] z = new int[999];
        for (int i = 0; i <= z.length - 1; i++) {
            System.out.println(z[i]);
        }
    }

    public static void methed1() {
        int[] z = new int[10];
      /* z[0]=1;
        z[1]=2;
        z[2]=3;
        z[3]=4;
        z[4]=5;
        z[5]=6;
        z[6]=7;
        z[7]=8;
        z[8]=9;
        z[9]=10;*/

        for (int i = 0; i <= z.length - 1; i++) {
                  z[i]=i+1;
            System.out.println(z[i]);
        }
    }
}